﻿<Window x:Class="TestGround.MainWindow"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		xmlns:wpf="clr-namespace:BeeCoders.Tools.Wpf.FileExplorer;assembly=BeeCoders.Tools.Wpf" Title="MainWindow" Height="550" Width="889">
	
	<TabControl Name="MainTab">
		<TabItem Name="FileExplorer" Header="File Explorer">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="100" />
					<RowDefinition Height="57*" />
					<RowDefinition Height="354*" />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="60*" />
					<ColumnDefinition Width="40*" />
				</Grid.ColumnDefinitions>

				<!-- Propety selections-->
				<CheckBox Content="IsMultiSelect"  Height="16" HorizontalAlignment="Left" Margin="48,12,0,0" Name="cbMultiSelect" VerticalAlignment="Top" IsChecked="True"/>
				<CheckBox Content="ShowDirectories"  Height="16" HorizontalAlignment="Left" Margin="48,34,0,0" Name="cbShowDirectories" VerticalAlignment="Top" IsChecked="True"/>
				<CheckBox Content="ShowFiles"  Height="16" HorizontalAlignment="Left" Margin="48,56,0,0" Name="cbShowFiles" VerticalAlignment="Top" IsChecked="False" />
				<CheckBox Content="ShowIcons"  Height="16" HorizontalAlignment="Left" Margin="220,12,0,0" Name="cbShowIcons" VerticalAlignment="Top" IsChecked="True" />
				<CheckBox Content="Show Real File Icons"  Height="16" HorizontalAlignment="Left" Margin="220,34,0,0" Name="cbShowRealIcons" VerticalAlignment="Top" IsChecked="True" />
				<CheckBox Content="Show Only Valid Drives"  Height="16" HorizontalAlignment="Left" Margin="220,56,0,0" Name="cbShowOnlyValidDrives" VerticalAlignment="Top" IsChecked="False" />

				<!-- FileExplorer -->
				<wpf:FileExplorer Name="myFileExplorer" Grid.Row="1" Grid.RowSpan="2"
								  IsFtpExplorer="False"
							  DataContext="{Binding FileExplorerViewModel.Instance}"
							  IsMultiSelect="{Binding ElementName=cbMultiSelect, Path=IsChecked}" 
							  ShowDirectories="{Binding ElementName=cbShowDirectories, Path=IsChecked}"
							  ShowFiles="{Binding ElementName=cbShowFiles, Path=IsChecked}"
							  ShowIcons="{Binding ElementName=cbShowIcons, Path=IsChecked}"
							  ShowRealIcons="{Binding ElementName=cbShowRealIcons, Path=IsChecked}"
							  >

				</wpf:FileExplorer>

				<!-- Selected Item list -->
				<ListView Grid.Column="1" Name="lbSelectedFiles" 
					   DataContext="{Binding FileExplorerViewModel.Instance}"
					  ItemsSource="{Binding SelectedItems}" Grid.Row="2" Margin="0,42,0,0" />

				<TextBox Grid.Column="1" Grid.Row="1" Height="23" 
					 HorizontalAlignment="Left" Margin="0,34,0,0" 
					 Name="tbSelectedPath" 
					 Text="{Binding FileExplorerViewModel.Instance.SelectedItem}"
					 VerticalAlignment="Top" Width="347" />
				<Label Content="Selected Item" Height="28" HorizontalAlignment="Left" Name="label2" VerticalAlignment="Top" Width="335" Grid.Column="1" Grid.Row="1" Background="#FFD1C7C7" />
				<Label Content="Checked Items" Grid.Column="1" Grid.Row="2" Height="28" HorizontalAlignment="Left" Name="label1" VerticalAlignment="Top" Width="335" Background="#FFD1C7C7" />
			</Grid>
		</TabItem>
	
		<TabItem Name="FtpExplorer" Header="Ftp Exploer">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="100" />
					<RowDefinition Height="57*" />
					<RowDefinition Height="354*" />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="60*" />
					<ColumnDefinition Width="40*" />
				</Grid.ColumnDefinitions>

				<!-- Propety selections-->
				<CheckBox Content="IsMultiSelect"  Height="16" HorizontalAlignment="Left" Margin="48,12,0,0" Name="cbMultiSelect2" VerticalAlignment="Top" IsChecked="True"/>
				<CheckBox Content="ShowDirectories"  Height="16" HorizontalAlignment="Left" Margin="48,34,0,0" Name="cbShowDirectories2" VerticalAlignment="Top" IsChecked="True"/>
				<CheckBox Content="ShowFiles"  Height="16" HorizontalAlignment="Left" Margin="48,56,0,0" Name="cbShowFiles2" VerticalAlignment="Top" IsChecked="False" />
				<CheckBox Content="ShowIcons"  Height="16" HorizontalAlignment="Left" Margin="220,12,0,0" Name="cbShowIcons2" VerticalAlignment="Top" IsChecked="True" />
				<CheckBox Content="Show Real File Icons"  Height="16" HorizontalAlignment="Left" Margin="220,34,0,0" Name="cbShowRealIcons2" VerticalAlignment="Top" IsChecked="True" />
				<CheckBox Content="Show Only Valid Drives"  Height="16" HorizontalAlignment="Left" Margin="220,56,0,0" Name="cbShowOnlyValidDrives2" VerticalAlignment="Top" IsChecked="False" />

				<!-- FileExplorer -->
				<wpf:FileExplorer Name="myFtpExplorer2" Grid.Row="1" Grid.RowSpan="2"
								  IsFtpExplorer="True"
							  DataContext="{Binding FtpExplorerViewModel.Instance}"
							  IsMultiSelect="{Binding ElementName=cbMultiSelect2, Path=IsChecked}" 
							  ShowDirectories="{Binding ElementName=cbShowDirectories2, Path=IsChecked}"
							  ShowFiles="{Binding ElementName=cbShowFiles2, Path=IsChecked}"
							  ShowIcons="{Binding ElementName=cbShowIcons2, Path=IsChecked}"
							  ShowRealIcons="{Binding ElementName=cbShowRealIcons2, Path=IsChecked}"
							  >

				</wpf:FileExplorer>

				<!-- Selected Item list -->
				<ListView Grid.Column="1" Name="lbSelectedFiles2" 
					   DataContext="{Binding FtpExplorerViewModel.Instance}"
					  ItemsSource="{Binding SelectedItems}" Grid.Row="2" Margin="0,42,0,0" />

				<TextBox Grid.Column="1" Grid.Row="1" Height="23" 
					 HorizontalAlignment="Left" Margin="0,34,0,0" 
					 Name="tbSelectedPath2" 
					 Text="{Binding FtpExplorerViewModel.Instance.SelectedItem}"
					 VerticalAlignment="Top" Width="347" />
				<Label Content="Selected Item" Height="28" HorizontalAlignment="Left" Name="label22" VerticalAlignment="Top" Width="335" Grid.Column="1" Grid.Row="1" Background="#FFD1C7C7" />
				<Label Content="Checked Items" Grid.Column="1" Grid.Row="2" Height="28" HorizontalAlignment="Left" Name="label12" VerticalAlignment="Top" Width="335" Background="#FFD1C7C7" />
			</Grid>
		</TabItem>
	</TabControl>

</Window>
